﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class Secure_mp3toyoutube1 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Label1.Text = GetCount().ToString();
    }

    int GetCount()
    {
        int lcount;

        if (Page.Session["count"] == null)
            lcount = 0;
        else
            lcount = Convert.ToInt32(Page.Session["count"]);

        return lcount;
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        int lcount = GetCount();

        Label1.Text = (++lcount).ToString();

        Page.Session["count"] = lcount;
    }
}
